package com.app.lxx.pregnancyberth.ui;

import androidx.annotation.NonNull;

import com.app.lxx.pregnancyberth.Mvp.Presenter.BasePresenter;
import com.app.lxx.pregnancyberth.R;
import com.app.lxx.pregnancyberth.base.BaseActivity;
import com.app.lxx.pregnancyberth.widge.MyX5WebView;

/**
 * Created by Lxx on PregnancyBerth
 * 2019/8/26 11:25 星期三
 * Details：H5加载公共Activity
 */
public class X5WebViewActivity extends BaseActivity {

    private MyX5WebView myX5WebView;
    private String webUrl;


    @Override
    protected BasePresenter createP() {
        return null;
    }

    @Override
    protected void initBindViewId() {
        webUrl = getIntent().getStringExtra("uri");
        myX5WebView = findViewById(R.id.myWebView);
        myX5WebView.loadUrl(webUrl);
    }

    @Override
    protected boolean hidetitle() {
        return false;
    }

    @Override
    protected String settitle() {
        return null;
    }

    @NonNull
    @Override
    public int setxmlview() {
        return R.layout.layout_webviewx5;
    }
}
